package com.it.myd.help;

import com.it.myd.bean.box.world.Material;
import com.it.myd.bean.main.User;

import java.text.SimpleDateFormat;

public class MaterialLoader {

    public Material getWoods(int count, User createUser){
        Material mat = new Material();
        mat.setId("1");
        mat.setName("木头");
        mat.setCreateUser(createUser);
        mat.setOwnUser(createUser);
        mat.setState("1");
        mat.setType("1");
        SimpleDateFormat sdf= new SimpleDateFormat("yyyyMMddHHmmss");
        String createtime = sdf.format(System.currentTimeMillis());
        mat.setCreatetime(createtime);
        mat.setCount(String.valueOf(count));
        return mat;
    }

    public Material getStones(int count, User createUser){
        Material mat = new Material();
        mat.setId("2");
        mat.setName("石头");
        mat.setCreateUser(createUser);
        mat.setOwnUser(createUser);
        mat.setState("1");
        mat.setType("1");
        SimpleDateFormat sdf= new SimpleDateFormat("yyyyMMddHHmmss");
        String createtime = sdf.format(System.currentTimeMillis());
        mat.setCreatetime(createtime);
        mat.setCount(String.valueOf(count));
        return mat;
    }


}
